import sys
import time

def tail(f):
    f.seek(0, 2)
    while True:
        line = f.readline()
        if not line:
            time.sleep(0.1)
            continue
        yield line

def print_matches(matchtext):
    print "Looking for", matchtext

    while True:
        line = (yield)
        if matchtext in line:
            print line

class Stack(object):
    def __init__(self):
        self.stack = []

    def push(self, object):
        self.stack.append(object)

    def pop(self):
        return self.stack.pop()

    def length(self):
        return len(self.stack)


if __name__ == "__main__":
    pass

